<?php
class Admin_DeliveryController extends My_Controller_Admin_Choix
{
	protected $deliveryModel = '';

	protected function _init()
	{
		$this->deliveryModel = new Admin_Model_Civility();
	}

	public function indexAction()
	{
	    $numVente = $this->_getParam('num_vente');
	    $this->view->numVente = $numVente;
	}

	public function remiseClientsAction()
	{
	    if (!$this->_getParam('part', false)) {
	       $this->_redirect('admin/delivery');
	    }
	    $numVente = $this->_getParam('num_vente');
	    $model = Mage::getModel('admin/clients');
	    $model->updateClientsVentes($numVente);
	}
}

